/*
 * ActionCallFunc.h
 *
 *  Created on: Jul 13, 2012
 *      Author: quyetnd
 */

#ifndef ACTIONCALLFUNC_H_
#define ACTIONCALLFUNC_H_
#include "cocos2d.h"
USING_NS_CC;

class ActionCallFunc : public CCActionInterval{
private:
	bool done;
	CCFiniteTimeAction* action_;
	CCObject* target_;
	SEL_CallFunc callback_;
public:
	ActionCallFunc();
	static ActionCallFunc* startWithAction(CCFiniteTimeAction* action,CCObject* target,SEL_CallFunc callback);
	virtual bool initWithAction(CCFiniteTimeAction* action,CCObject* target,SEL_CallFunc callback);
	virtual void startWithTarget(CCNode *pTarget);
	virtual void stop(void);

//	virtual void update(ccTime time);

	virtual void step(ccTime time);
	virtual bool isDone();
	virtual ~ActionCallFunc();

	bool isLog;
};

#endif /* ACTIONCALLFUNC_H_ */
